<?php


namespace App\Http\Controllers;


use Illuminate\Support\Facades\Redis;

class RedisGeoController
{
    public function ageGeo()
    {
        Redis::rawCommand('geoadd', 'citys', '116.40', '39.90', 'beijing');
        Redis::rawCommand('geoadd', 'citys', '121.47', '31.23', 'shanghai');
        Redis::rawCommand('geoadd', 'citys', '114.30', '30.60', 'wuhan');
        dd(Redis::rawCommand('geodist', 'citys', 'beijing', 'wuhan'));
    }
}